package com.seek.eduservice.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.seek.eduservice.entity.excel.SubjectData;

import java.util.ArrayList;
import java.util.List;

/**
 * author wml
 * Created on 2022/1/15 10:43
 */
public class SubjectExcelListener extends AnalysisEventListener<SubjectData> {

    public List<SubjectData> list = new ArrayList<>();

    @Override
    public void invoke(SubjectData subjectData, AnalysisContext analysisContext) {
        list.add(subjectData);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {
    }
}
